package com.maybach.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.common.model.ImportModuleDO;
import com.maybach.common.query.ImportModuleQuery;

import java.util.List;


/**
 * Manager for ImportModule.
 */
public interface ImportModuleManager {
    /**
     * query count by query condition.
     */
    int countByQuery(ImportModuleQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ImportModuleQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(ImportModuleDO record);

    /**
     * insert selective.
     */
    long insertSelective(ImportModuleDO record);

    /**
     * select by query condition.
     */
    List<ImportModuleDO> selectByQuery(ImportModuleQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<ImportModuleDO> selectByQueryWithPage(ImportModuleQuery query);

    /**
     * select by primary key.
     */
    ImportModuleDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( ImportModuleDO record,  ImportModuleQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(ImportModuleDO record, ImportModuleQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ImportModuleDO record);
}